#ifndef _Button_H_
#define _Button_H_
#include "cocos2d.h"

class Button : public cocos2d::CCLayerColor
{
public:
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();

    // a selector callback 
	void Button::menuClose(cocos2d::CCSize visibleSize, cocos2d::CCPoint origin);
    void menuCloseCallback(CCObject* pSender);

    // touch callback
    void ccTouchesBegan(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);

    // implement the "static node()" method manually
    CREATE_FUNC(Button);

};

#endif // _Button_H_